import request from '@/utils/request'

// 创建套餐绑定权限
export function createSeekPackageBindPermission(data) {
  return request({
    url: '/car/seek-package-bind-permission/create',
    method: 'post',
    data: data
  })
}

// 更新套餐绑定权限
export function updateSeekPackageBindPermission(data) {
  return request({
    url: '/car/seek-package-bind-permission/update',
    method: 'put',
    data: data
  })
}

// 删除套餐绑定权限
export function deleteSeekPackageBindPermission(id) {
  return request({
    url: '/car/seek-package-bind-permission/delete?id=' + id,
    method: 'delete'
  })
}

// 获得套餐绑定权限
export function getSeekPackageBindPermission(id) {
  return request({
    url: '/car/seek-package-bind-permission/get?id=' + id,
    method: 'get'
  })
}

// 获得套餐绑定权限分页
export function getSeekPackageBindPermissionPage(query) {
  return request({
    url: '/car/seek-package-bind-permission/page',
    method: 'get',
    params: query
  })
}

// 导出套餐绑定权限 Excel
export function exportSeekPackageBindPermissionExcel(query) {
  return request({
    url: '/car/seek-package-bind-permission/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
